how to find root of linear equations